<?php

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/* Clinician class for Forestdale
 * @author Donald Barclay
 * @published 17 March 2014
 */

class Clinician{
    private $id;//phsycian unique ID-- concatenate first name and phone number
    private $fname;//first name
    private $lname;//last name
    private $specialty;//medical field =
    private $phoneNum;//10 Digit phone number
    private $cellNum;// 10 Digit alt phone number
    private $SSN; //social security number
    private $availability;
    private $npi; //national provider


/*
 * Constructs a physician
 */
function __construct($fn,$ln,$s,$p, $cn, $ss, $avail, $npi){
    error_log('in clinician constructor, fn is '.$fn);
    error_log('in clinician constructor, npi is '.$npi);
   $this->id =$fn.$npi;  //id will be first name + NPI
   $this->fname = $fn;
   $this->lname = $ln;
   $this->specialty = $s;
   $this->phoneNum = $p;
   $this->cellNum = $cn;
   $this->SSN = $ss;
   $this->availability = $avail;
   $this->npi = $npi;

    
}
/*
 * Basic get() functions
 * Added a getfullname() function to make displaying full names easier
 */
function get_id(){
    return $this->id;
}
function get_fname (){
    return $this->fname ;
}
function get_lname (){
    return $this->lname ;
}
function get_fullname (){
    return "$this->fname"."$this->lname" ;
}
function get_specialty (){
    return $this->specialty ;
}
function get_phoneNum (){
    return $this->phoneNum ;
 
}
function get_cellNum() {
    return $this->cellNum;
}
 function get_SSN () {
     return $this->SSN;
 }

function get_availability() {
    return $this->availability;
}
function get_npi() {
    return $this->npi;
}


/*
 * Basic set() functions
 */
function set_id($i){
    $this->id = $i;
}
function set_fname ($f){
    $this->fname = $f;
}
function set_lname ($l){
    $this->lname = $l;
}

  // The first parameter must be the last name.
function set_fullname ($l, $f){
    $this->fname = $f;
    $this->lname = $l;
}
function set_specialty ($s){
    $this->specialty = $s;
}
function set_phoneNum ($p){
    $this->phoneNum = $p;
}
function set_cellNum ($cn){
    $this->cellNum = $cn;
}
function set_SSN ($ss){
    $this->SSN = $ss;
}
function set_availability ($avail){
    $this->availability = $avail;
}

} // end clinician
